/**
 * (c) 2006 JOVEN
 * 
 * http://www.joven.com.cn
 */
package me.cloudcat.develop.entity.configuration;

import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;
import javax.validation.constraints.NotNull;

import me.cloudcat.develop.entity.BaseEntity;

/**
 * 权限
 * @author ZZWang
 * @Time 2017年1月17日  下午2:54:49
 *
 */
@Entity
@Table(name = "tbl_permission", uniqueConstraints = {@UniqueConstraint(columnNames = "name")})
//@SequenceGenerator(name="SEQ_STORE", sequenceName="TBL_PERMISSION_ID_ASQ", allocationSize=1)
public class Permission extends BaseEntity<Permission> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6846661660960914438L;

	@NotNull
	private String name;
	
	@NotNull
	private String displayname;
	
	private String description;


	@Version
	private int version;
	

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDisplayname() {
		return displayname;
	}

	public void setDisplayname(String displayname) {
		this.displayname = displayname;
	}
}
